import QtQuick 2.12
import QtQuick.Controls 2.12

TextField
{
    id: control
    // placeholderText: qsTr("请输入内容")

    color: "#21be2b";
    font.pixelSize: 15;
    font.bold: true;

    horizontalAlignment: Text.AlignHCenter;
    verticalAlignment: Text.AlignVCenter;

    background: Rectangle
    {
        implicitWidth: 80;
        implicitHeight: 26;

        color: control.enabled ? "transparent" : "#353637";
        border.color: control.enabled ? "#21be2b" : "transparent";
    }
}
